const DAY: f64 = 365.0;

pub fn new_birthday_probability(n: u32) -> f64 {
    let mut ans = 1.0;
    for i in 1..n {
        ans = ans * (DAY - i as f64) / DAY;
    }
    1.0 - ans
}
